<div class="page">
	<div class="page-head">
		<h1 class="font-thin h4">添加客户单位</h1>
	</div>
	
	<div class="page-body">
	<form name="step1" id="clientAddForm" class="form-validation form-horizontal" novalidate ng-controller="clientManagentAddController">
		<table class=" table-bordered client-table client-table-top">
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>客户单位：</td>
				<td class="client-td-right">
                    <input id="clientAdd_clientName" type="text" class="form-control input-sm ipt-3" ng-model="name" required placeholder="请填写客户单位名称" name="name">
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>客服专员：</td>
				<td class="client-td-right">
                    <select id="clientAdd_serviceOfficerId" name="serviceOfficer" class="form-control input-sm ipt-2 tms-select" ng-model="serviceOfficerId" ng-options="x.id as x.realName for x in serviceOfficerIdDropDown" name="clientServiceOfficerId" required>
                        <option value="">请选择</option>
                    </select>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>商务专员：</td>
				<td class="client-td-right">
					<select id="clientAdd_businessOfficerId" name="businessOfficer" class="form-control input-sm ipt-2 tms-select" ng-model="businessOfficerId" ng-options="x.id as x.realName for x in businessOfficerDropDown" name="businessOfficerId" required>
                        <option value="">请选择</option>
                    </select>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>客户地址：</td>
				<td class="client-td-right">
					<tms-address  province="provinceCode" city="cityCode" area="areaCode" city-list="CityList" area-list="AreaList" required="true"></tms-address>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>详细地址：</td>
				<td class="client-td-right">
					<input id="clientAdd_address" type="text" class="form-control input-sm ipt-3" ng-model="addess" placeholder="请填写详细地址" required name="address" />
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>手机号码：</td>
				<td class="client-td-right">
					<input id="clientAdd_phone" type="tel" class="form-control input-sm ipt-3" ng-model="phoneNumber" placeholder="请填写手机号" name="phoneNumber" ng-pattern="/^1\d{10}$/" required />
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>管理员账号：</td>
				<td class="client-td-right">
					<input id="clientAdd_adminUserName" type="text" class="form-control input-sm ipt-3" ng-model="adminUserName" placeholder="请填写管理员账号" required name="adminUserName" />
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>管理员密码：</td>
				<td class="client-td-right">
					<input id="clientAdd_password" type="password" class="form-control input-sm ipt-3" ng-minlength="6" ng-model="adminPassword" placeholder="请填写管理员密码" required name="adminPassword" />
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>重复管理员密码：</td>
				<td class="client-td-right">
                    <input id="clientAdd_rePassword" type="password" class="form-control input-sm ipt-3" ng-minlength="6" required ng-model="reAdminPassword" placeholder="请再次填写管理员密码" name="reAdminPassword" ui-validate=" '$value==adminPassword' " ui-validate-watch=" 'adminPassword' "
                    required ng-change="step1.reAdminPassword.$valid ? (steps.percent=20) : (steps.percent=15)" />
                <span class="text-danger m-l-sm" ng-show='step1.reAdminPassword.$error.validator'>密码不匹配！</span>
				</td>
			</tr>
			<tr>
				<td class="client-td-left">客户类型：</td>
				<td class="client-td-right">
					<select id="client_type" class="form-control input-sm ipt-2 tms-select" ng-model="clientType" ng-options="x.value as x.text for x in clientTypeList"
                        name="clientTypeId" >
                        <option value="">请选择</option>
                    </select>
				</td>
			</tr>
			<tr>
				<td class="client-td-left">产品：</td>
				<td class="client-td-right">
					<textarea class="form-control input-sm ipt-3" ng-model="products" placeholder="请填写产品以逗号隔开" name="products"></textarea>
				</td>
			</tr>
			<tr>
				<td class="client-td-left">产品包装方式 ：</td>
				<td class="client-td-right">
					<input id="clientAdd_productPack" type="text" class="form-control input-sm ipt-3" ng-model="productPack" placeholder="请填写产品包装方式" name="productPack" />
				</td>
			</tr>
			<tr>
				<td class="client-td-left">付款方式 ：</td>
				<td class="client-td-right">
					<input id="clientAdd_paidWay" type="text" class="form-control input-sm ipt-3" ng-model="paidWay" placeholder="请填写付款方式" name="paidWay" />
				</td>
			</tr>
			<tr>
				<td class="client-td-left">备注 ：</td>
				<td class="client-td-right">
					<textarea class="form-control input-sm ipt-3" ng-model="remarks" placeholder="请填写备注" name="remarks"></textarea>
				</td>
			</tr>

		</table>
		<div class="client-btn">
			<button id="clientAdd_back" class="btn tms-btn tms-btn-back" ui-sref="app.client.client_ManagentNew">返回</button>
			<button id="clientAdd_save" class="btn tms-btn tms-btn-save " ng-click="click()" ng-disabled="step1.$invalid">保存</button>
		</div>
	</form>
	</div>
	
</div>